package com.dq.service.config;

import com.alibaba.fastjson.JSONObject;
import com.dq.exception.customException.AdminException;
import com.dq.vo.Vo;
import com.dq.domain.evaluation.EvaluationTemplate;

import java.util.List;

/**
 * @author cf
 *
 * 岗位逻辑
 *
 */
public interface EvaluationTemplateService {
    /**
     * 获取模板（评分。。。）
     * @param template
     * @return
     * @throws AdminException
     */
    public Vo getInfo(EvaluationTemplate template) throws AdminException;
    /**
     * 保存模板子模版
     * @param jsonObject
     * @param paren
     * @return
     * @throws AdminException
     */
    public Vo saveUpdate(JSONObject jsonObject, EvaluationTemplate paren) throws AdminException;
    /**
     * 添加/修改, 批量
     * @param list
     * @return
     * @throws AdminException
     */
    public List<EvaluationTemplate> saveUpdateList(List<EvaluationTemplate> list)  throws AdminException;

    /**
     * 添加/修改
     * @param evaluationTemplate
     * @return
     * @throws AdminException
     */
    public EvaluationTemplate saveUpdate(EvaluationTemplate evaluationTemplate)  throws AdminException;

    /**
     * 添加对象基本属性配置
     * @param evaluationTemplate
     * @return
     * @throws AdminException
     */
    public EvaluationTemplate objectSaveBase(EvaluationTemplate evaluationTemplate) throws AdminException;

    /**
     * 修改对象基本属性配置
     * @param evaluationTemplate
     * @return
     * @throws AdminException
     */
    public EvaluationTemplate objectUpdateBase(EvaluationTemplate evaluationTemplate) throws AdminException;

}
